package com.qingcloud.adminbackend.mapper;

import com.qingcloud.adminbackend.entity.equipment.SysEquipmentDetailsDTO;
import com.qingcloud.adminbackend.entity.sysorg.SysUserModuleDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备管理权限下的订单
 */
public interface SysUserOrderStationmgrMapper {
    /**
     * 当前用户可管理的订单
     *
     * @param userId
     * @return
     */
    List<String> findOrderMgrByUserId(@Param("userId") String userId);

    /**
     * 查询用户写权限的订单
     * @param userId
     * @param businessType
     * @return
     */
    List<SysUserModuleDTO> findOrderMgrBybusinessType(@Param("userId") String userId,@Param("businessType")  String businessType);

    /**
     * 设备读写权限
     * @param equipmentId
     * @param userId
     * @return
     */
    SysEquipmentDetailsDTO findOrderMgrByEquipmentId(@Param("equipmentId") String equipmentId,@Param("userId") String userId);
}
